home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / ctlmod / getp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  367 b   |  26 lines

  1. # include    "ctlmod.h"
  2. # include    <pv.h>
  3. # include    <sccs.h>
  4.  
  5. SCCSID(@(#)getp.c    8.1    12/31/84)
  6.  
  7. /*
  8. **  GETP -- returns the current PV
  9. **
  10. **    Parameters:
  11. **        none
  12. **
  13. **    Returns:
  14. **        a pointer to the pv. (the PV[PC].pv_type == PV_EOF)
  15. **
  16. **    Side Effects:
  17. **        sets PV[PC].pv_type = PV_EOF.
  18. */
  19.  
  20. PARM *
  21. getp()
  22. {
  23.     Ctx.ctx_pv[Ctx.ctx_pc].pv_type = PV_EOF;
  24.     return (Ctx.ctx_pv);
  25. }
  26.